.class public Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private b:Ljava/util/ArrayList;

.field private c:Lcom/waiqin365/lightapp/kehu/b/c;

.field private d:Ljava/lang/String;

.field private e:Z

.field private f:Ljava/lang/String;

.field private g:Ljava/util/HashMap;

.field private h:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->e:Z

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->b:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;)Lcom/waiqin365/lightapp/kehu/b/c;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->c:Lcom/waiqin365/lightapp/kehu/b/c;

    return-object v0
.end method

.method private b()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/kehu/v;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kehu/v;-><init>(Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->h:Landroid/os/Handler;

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->a:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    return-object v0
.end method

.method private c()V
    .locals 4

    const/4 v3, 0x0

    const v0, 0x7f0c01da

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0309

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    const v0, 0x7f0c0305

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f08004c

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0231

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->a:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "code"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->d:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "isedit"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "jsonStr"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "storeId"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->f:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "selectAgency"

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->e:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "list"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    :goto_0
    new-instance v0, Lcom/waiqin365/lightapp/kehu/b/c;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->b:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v2, v1}, Lcom/waiqin365/lightapp/kehu/b/c;-><init>(Landroid/content/Context;Ljava/util/ArrayList;Z)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->c:Lcom/waiqin365/lightapp/kehu/b/c;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->a:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->c:Lcom/waiqin365/lightapp/kehu/b/c;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->a:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/w;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/w;-><init>(Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->a:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    return-void

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->a()V

    goto :goto_0
.end method

.method private d()V
    .locals 4

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->e:Z

    if-nez v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v1, "code"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->d:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "selectCustomerInfos"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const/4 v1, -0x1

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->setResult(ILandroid/content/Intent;)V

    new-instance v1, Lcom/waiqin365/lightapp/view/a/a;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/view/a/a;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string/jumbo v3, "returnTo"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    iput-object v0, v1, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/Observable;->notifyObservers(Ljava/lang/Object;)V

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->back()V

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->e:Z

    return v0
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->d()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->showProgressDialog(Ljava/lang/String;)V

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->g:Ljava/util/HashMap;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->g:Ljava/util/HashMap;

    const-string/jumbo v1, "storeId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->f:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->g:Ljava/util/HashMap;

    const-string/jumbo v1, "menuViewAll"

    const-string/jumbo v2, "1"

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->g:Ljava/util/HashMap;

    const-string/jumbo v1, "shortcutKey"

    const-string/jumbo v2, "all"

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v0, "_token"

    const-string/jumbo v1, ""

    invoke-static {p0, v0, v1}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/lightapp/kehu/a/a/bk;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->g:Ljava/util/HashMap;

    invoke-direct {v1, v0, v2}, Lcom/waiqin365/lightapp/kehu/a/a/bk;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v0, Lcom/waiqin365/lightapp/kehu/a/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->h:Landroid/os/Handler;

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/lightapp/kehu/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/kehu/a/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/b;->start()V

    return-void
.end method

.method public onBackPressed()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->d()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->d()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c01da
        :pswitch_0
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030051

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->b()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->c()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/p;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/p;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/p;->l()V

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onDestroy()V

    return-void
.end method
